package com.shelpe.services.lexicon.service.filter.support;

import com.shelpe.services.lexicon.constants.Device;
import com.shelpe.services.lexicon.entity.AdgroupRecord;
import com.shelpe.services.lexicon.entity.KeywordRecommend;


public class WordKeywordRecommendFilter implements KeywordRecommendFilter {
	@Override
	public KeywordRecommend run(KeywordRecommend recommend, AdgroupRecord record, Device device) {
		boolean support = true;

		if (recommend.getWord().length() < 2) {
			support = false;
		}
		return support ? recommend : null;
	}

}
